<%@page import="models.GeoModel"%>
<%@page import="java.util.ArrayList"%>
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%
ArrayList<GeoModel> cities = (ArrayList<GeoModel>) request.getAttribute("cities");
String city = (String) request.getAttribute("city");
%>

<jsp:include page="/admin/layouts/header.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>

<script type="text/javascript" src="/admin/js/form_config.js"></script>

		
		<div class="maincontent noright">
        	<div class="maincontentinner">
                <ul class="maintabmenu multipletabmenu">
                	<li><a href="/admin/email/import">Import Email</a></li>
                	<li class="current"><a href="/admin/email/export">Export Email</a></li>
                </ul><!--maintabmenu-->
                
                <div class="content">
					<jsp:include page="/admin/elements/message.jsp"/>
                    <div class="contenttitle">
                    	<h2 class="form"><span>Export Email từ hệ thống</span></h2>
                    </div><!--contenttitle-->
                    <form class="stdform stdform2" id="edit_config_form" action="" method="post">
                    	<p>
                        	<label>Chọn Tỉnh/Thành phố</label>
                            <span class="field">
                            	<select name="city">
                            		<% for (int i = 0; i < cities.size(); i++) { %>
                            		<option value="<%=cities.get(i).getGeoId()%>" <%=(city != null && city.equalsIgnoreCase(cities.get(i).getGeoId())) ? "selected=\"selected\"" : "" %>><%=cities.get(i).getName() %></option>
                            		<% } %>
                            	</select>
                            </span>
                        </p>
                        
                        <p class="stdformbutton">
                        	<button class="submit radius2">Xuất ra excel</button>
                        </p>
                        
                    </form>
                    
                    <br clear="all">
                    
                </div><!--content-->
                
            </div><!--maincontentinner-->
            
            <jsp:include page="/admin/elements/copyright.jsp">
            	<jsp:param name="language" value="1" />
			</jsp:include>
            
        </div>

<jsp:include page="/admin/layouts/footer.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>